package zhishu.iceyyy.com.bxq_2500.myadapter.mys;

import android.app.Activity;
import android.content.Context;
import android.graphics.Bitmap;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.TextView;

import com.squareup.picasso.Picasso;

import java.util.List;

import zhishu.iceyyy.com.bxq_2500.R;
import zhishu.iceyyy.com.bxq_2500.base.Base_Z_Adapter;
import zhishu.iceyyy.com.bxq_2500.bean.Mine;
import zhishu.iceyyy.com.bxq_2500.bean.MovielistD;
import zhishu.iceyyy.com.bxq_2500.utils.BitmapTrans;

public class MysViewAdapter extends BaseAdapter {

    public Context context;

    List<Mine.DataBean.ListBean> list;

    public MysViewAdapter(Context context, List<Mine.DataBean.ListBean> list) {
        this.context = context;
        this.list = list;

    }

    @Override
    public int getCount() {
        return list.size();
    }

    @Override
    public Object getItem(int arg0) {
        return list.get(arg0);
    }

    @Override
    public long getItemId(int arg0) {
        return arg0;
    }



    @Override
    public View getView(int position, View view, ViewGroup arg2) {
        Holder holder;
        if (view == null) {
            view = LayoutInflater.from(context).inflate(R.layout.tab_item_1_my, null);
            holder = new Holder();
            holder.textView = (TextView) view.findViewById(R.id.tv_name);
            view.setTag(holder);
        } else {
            holder = (Holder) view.getTag();
        }
        Log.e("zzz", "xx" + list.get(position).getM_mine_title());
        Log.e("zzz", "xx" + list.get(position).getM_mine_title());
        holder.textView.setText(list.get(position).getM_mine_title());

        return view;
    }

    class Holder {

        TextView textView;
    }


}
